song = []
with open( 'C:\\Users\\wbw\\Desktop\\Whhpython\\homework3\\Blowing in the wind.txt', 'r', encoding = 'utf-8' ) as f:
    for line in f.readlines():
        song.append(line.strip().split())
        
song.insert(0,['Blowing','in','the','wind'])
song.insert(1,['Bob','Dylan'])
song.append(['1962','by', 'Warner', 'Bros.Inc'])

with open('C:\\Users\\wbw\\Desktop\\Whhpython\\homework3\\Blowing in the wind.txt','w+',encoding='utf-8') as f:
    for i in song:
        s = str(i).replace("["," ").replace("]"," ").replace(","," ").replace("'"," ") + "\n"
        f.write(s)
with open('C:\\Users\\wbw\\Desktop\\Whhpython\\homework3\\Blowing in the wind.txt','r',encoding='utf-8') as f:
    for line in f.readlines():
        print(line.strip())



